This lecture is for people who didn't want to write out the code in the last video.  If you already created the index.js file and package.json file, skip this section!


Here's what you'll need to do:

1) Create a new file called package.json and copy paste the following into it:

{
  "dependencies": {
    "express": "*"
  },
  "scripts": {
    "start": "node index.js"
  }
}

2) Create a new file called index.js and copy paste the following into it:

const express = require('express');

const app = express();

app.get('/', (req, res) => {
  res.send('How are you doing');
});

app.listen(8080, () => {
  console.log('Listening on port 8080');
});